﻿<%@ Control Language="C#" Inherits="PT.CarList.ViewCarList" AutoEventWireup="true"
    CodeBehind="ViewCarList.ascx.cs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<asp:MultiView ID="mvView" runat="server" ActiveViewIndex="0">
    <asp:View ID="viewListCar" runat="server">
        <telerik:RadListView ID="lvCarList" runat="server" ItemPlaceholderID="TrackContainer">
            <LayoutTemplate>
                <asp:PlaceHolder ID="TrackContainer" runat="server"></asp:PlaceHolder>
            </LayoutTemplate>
            <ItemTemplate>
                <div class="caritem">
                    <div class="classname">
                        <a href="<%# DotNetNuke.Common.Globals.NavigateURL(this.TabId, "", "CarID=" + Eval("ItemID").ToString()) %>">
                            <img alt="" src='<%# Eval("ImageURL") %>' style="height: 105px; width: 150px; margin-right: 0px;
                                float: left;"></a>
                    </div>
                    <p class="carname">
                        <a href="<%# DotNetNuke.Common.Globals.NavigateURL(this.TabId, "", "CarID=" + Eval("ItemID").ToString()) %>">
                            <%# Eval("CarName")%></a>
                    </p>
                    <p class="cartype">
                        <span>Số chỗ: </span>
                        <%# Eval("CarType")%>
                    </p>
                    <p>
                        <%# Eval("OtherInfo")%>
                    </p>
                </div>
            </ItemTemplate>
        </telerik:RadListView>
    </asp:View>
    <asp:View ID="viewDetail" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="display:none">
            <tr>
                <td style="width: 75px">
                    <dnn:Label ID="Label1" runat="server" ResourceKey="lblName" CssClass="spanTitle">
                    </dnn:Label>
                </td>
                <td>
                    <asp:Label ID="lblName" runat="server">
                    </asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 75px">
                    <dnn:Label ID="Label2" runat="server" ResourceKey="lblManufacture" CssClass="spanTitle">
                    </dnn:Label>
                </td>
                <td>
                    <asp:Label ID="lblManufacture" runat="server">
                    </asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <dnn:Label ID="Label3" runat="server" ResourceKey="lblCarType" CssClass="spanTitle">
                    </dnn:Label>
                </td>
                <td>
                    <asp:Label ID="lblCarType" runat="server">
                    </asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <dnn:Label ID="Label4" runat="server" ResourceKey="lblPrice" CssClass="spanTitle">
                    </dnn:Label>
                </td>
                <td>
                    <asp:Label ID="lblPrice" runat="server">
                    </asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <dnn:Label ID="Label5" runat="server" ResourceKey="lblMainDetail" CssClass="spanTitle">
                    </dnn:Label>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td colspan="2">
                    <asp:Literal ID="lblDetailInfo" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <br />
                    <div style="float: left">
                        <telerik:RadButton ID="btnBack" runat="server" Text="Trở lại" OnClick="_btnBack_Click">
                        </telerik:RadButton>
                    </div>
                    <div style="float: right">
                        <telerik:RadButton ID="btnDatXe" runat="server" Text="Đặt xe" OnClick="_btnDatXe_Click">
                        </telerik:RadButton>
                    </div>
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="viewDatXe" runat="server">
        <div style="align: center">
            <table id="tblDatxe" runat="server" border="0" cellpadding="0" cellspacing="0" width="400px">
                <tr>
                    <td style="width: 75px">
                        <dnn:Label ID="Label6" runat="server" ResourceKey="lblPersonName" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtName" runat="server" Width="300px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblAddress" runat="server" ResourceKey="lblAddress" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtAddress" runat="server" Width="300px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAddress"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblPhone" runat="server" ResourceKey="lblPhone" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtPhone" runat="server" Width="300px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblEmail" runat="server" ResourceKey="lblEmail" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtEmail" runat="server" Width="300px">
                        </telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblFromCity" runat="server" ResourceKey="lblFromCity" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cboFromCity" runat="server" Width="300px" DataValueField="CityID"
                            DataTextField="CityName">
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblToCity" runat="server" ResourceKey="lblToCity" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cboToCity" runat="server" Width="300px" DataValueField="CityID"
                            DataTextField="CityName">
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblFromDate" runat="server" ResourceKey="lblFromDate" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="dteFromDate" runat="server" Width="300px">
                        </telerik:RadDatePicker>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="dteFromDate"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dnn:Label ID="lblToDate" runat="server" ResourceKey="lblToDate" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="dteTodate" runat="server" Width="300px">
                        </telerik:RadDatePicker>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="dteFromDate"
                            ValidationGroup="SaveThueXeCardList" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <dnn:Label ID="lblOtherInfo" runat="server" ResourceKey="lblOtherInfo" CssClass="spanTitle">
                        </dnn:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <telerik:RadTextBox ID="txtOtherInfo" runat="server" TextMode="MultiLine" Height="100px"
                            Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <br />
                        <telerik:RadButton ID="btnBackToCar" runat="server" Text="Trở lại" OnClick="_btnBackToCar_Click">
                        </telerik:RadButton>
                        <telerik:RadButton ID="btnOK" runat="server" Text="Đặt chỗ" OnClick="_btnOK_Click"
                            ValidationGroup="SaveThueXeCardList">
                        </telerik:RadButton>
                    </td>
                </tr>
            </table>
        </div>
    </asp:View>
</asp:MultiView>
<div style="clear: both;">
</div>
